package mr.ali.videoapp.portal.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import mr.ali.videoapp.portal.model.CollectionYear;
import mr.ali.videoapp.portal.mapper.CollectionYearMapper;
import mr.ali.videoapp.portal.service.ICollectionYearService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Mr-ali
 * @since 2025-06-26
 */
@Service
public class CollectionYearServiceImpl extends ServiceImpl<CollectionYearMapper, CollectionYear> implements ICollectionYearService {
    @Resource
    private CollectionYearMapper collectionYearMapper;

    @Override
    public List<CollectionYear> findByAll() {
        QueryWrapper<CollectionYear> queryWrapper = new QueryWrapper<>();
        return collectionYearMapper.selectList(queryWrapper);
    }
}
